//
//  HWHomezhongyaodeCell.m
//  HWanGame
//
//  Created by 陈道斌 on 2020/9/25.
//  Copyright © 2020 Chendaobin. All rights reserved.
//

#import "HWHomezhongyaodeCell.h"

@implementation HWHomezhongyaodeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.xiangqingBut.userInteractionEnabled = NO;
    
    
    //    self.rankingImageView  = [[UIImageView alloc]initWithFrame:CGRectMake((44-27)/2, 20, 27, 30)];
    //    self.rankingImageView.image = [UIImage imageNamed:@"panhangbandiyiming"];
    //    [self.contentView addSubview:self.rankingImageView];
    //
    //      self.jiluLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 10, 44, 52)];
    //      self.jiluLabel.text = @"1";
    //      self.jiluLabel.textColor = RGB(51, 51 , 51);
    //      self.jiluLabel.font = [UIFont systemFontOfSize:12];
    //    //  self.downloadNumberLabel.backgroundColor = [UIColor redColor];
    //      self.jiluLabel.textAlignment  = NSTextAlignmentCenter;
    //      [self.contentView addSubview:self.jiluLabel];
    //
    //
    
    
    
    //    UIView *view2 = [[UIView alloc] initWithFrame:CGRectMake(120, 10, 80, 80)];
    //    view2.backgroundColor = [UIColor redColor];
    //    [self.view addSubview:view2];
    //
    //    UIBezierPath *maskPath = [UIBezierPath bezierPathWithRoundedRect:view2.bounds byRoundingCorners:UIRectCornerBottomLeft | UIRectCornerBottomRight cornerRadii:CGSizeMake(10, 10)];
    //    CAShapeLayer *maskLayer = [[CAShapeLayer alloc] init];
    //    maskLayer.frame = view2.bounds;
    //    maskLayer.path = maskPath.CGPath;
    //    view2.layer.mask = maskLayer;
    
    
    
    //  self.beijingtupianIangeview  = [UIImageView alloc]initWithFrame:CGRectMake(<#CGFloat x#>, <#CGFloat y#>, <#CGFloat width#>, <#CGFloat height#>)
    //  [HWjianzhiduiObject keylocalization:@"详情"]
    
    [self.xiangqingBut setTitle: [HWjianzhiduiObject keylocalization:@"详情"] forState:UIControlStateNormal];
    
    
    
    
    [self.xiangqingBut addTarget:self action:@selector(xianqingBut) forControlEvents:UIControlEventTouchUpInside];
    
    
    
    
    self.newbeijingiamgeView = [[UIView alloc]initWithFrame:CGRectMake(10, 0, kScreenW-20, 162)];
    self.newbeijingiamgeView.backgroundColor = [UIColor whiteColor];
    
    [self.contentView addSubview:self.newbeijingiamgeView];
    
    
    self.beijingtupianIangeview = [[UIImageView alloc]initWithFrame:CGRectMake(10, 0, kScreenW-40, 162)];
    self.beijingtupianIangeview.layer.cornerRadius = 10;
    self.beijingtupianIangeview.layer.masksToBounds = YES;
    self.beijingtupianIangeview.contentMode = UIViewContentModeScaleAspectFill;
    self.beijingtupianIangeview.backgroundColor = [UIColor redColor];
    
    
    [self.newbeijingiamgeView addSubview:self.beijingtupianIangeview];
    
    
    
    self.zhezhaocenView = [[UIView alloc]initWithFrame:CGRectMake(10, 162, kScreenW-20, 55)];
    self.zhezhaocenView.backgroundColor = [UIColor whiteColor];
    [self.contentView addSubview:self.zhezhaocenView];
    
    
    [self.contentView  bringSubviewToFront:self.beijingshituView];
    
    
    
    
    // 注意这一块代码
    
    self.rankingImageView  = [[UIImageView alloc]initWithFrame:CGRectMake((44-27)/2, 20, 27, 30)];
    self.rankingImageView.image = [UIImage imageNamed:@"panhangbandiyiming"];
    self.rankingImageView.hidden = YES;
    [self.contentView addSubview:self.rankingImageView];
    
    self.jiluLabel = [[UILabel alloc]initWithFrame:CGRectMake(0, 10, 44, 52)];
    self.jiluLabel.text = @"1";
    self.jiluLabel.textColor = RGB(51, 51 , 51);
    self.jiluLabel.font = [UIFont systemFontOfSize:12];
    //  self.downloadNumberLabel.backgroundColor = [UIColor redColor];
    self.jiluLabel.textAlignment  = NSTextAlignmentCenter;
    self.jiluLabel.hidden = YES;
    [self.contentView addSubview:self.jiluLabel];
    
    
    
    
    
    self.shijianLabel = [[UILabel alloc]initWithFrame:CGRectMake(kScreenW-20-10-200, 10,200, 14)];
    self.shijianLabel .text = @"19888年";
    self.shijianLabel .textColor = RGB(204, 204 , 204);
    self.shijianLabel .font = [UIFont systemFontOfSize:10];
    //  self.shijianLabel.font = [UIFont systemFontOfSize:<#(CGFloat)#>]
    //  self.downloadNumberLabel.backgroundColor = [UIColor redColor];
    self.shijianLabel .textAlignment  = NSTextAlignmentRight;
    self.shijianLabel .hidden = YES;
    
    [self.beijingshituView addSubview:self.shijianLabel];
    
    
    
    
    
    [self.contentView  bringSubviewToFront:self.jiluLabel];
    [self.contentView  bringSubviewToFront:self.rankingImageView];
    
    
    
    
    
    
    
    
    self.tupianImagevIew.layer.cornerRadius = 10;
    self.tupianImagevIew.layer.masksToBounds = YES;
    
    
    
    
    
    
    
    self.biaoqian.layer.cornerRadius = 2;
    self.biaoqian.layer.masksToBounds = YES;
    self.biaoqian1Label.layer.cornerRadius = 2;
    self.biaoqian1Label.layer.masksToBounds = YES;
    
    self.biaoqian2Label.layer.cornerRadius = 2;
    self.biaoqian2Label.layer.masksToBounds = YES;
    
    self.contentView.backgroundColor = RGB(247, 247, 247);
    
    
    self.xiangqingBut.layer.cornerRadius = 13;
    self.xiangqingBut.layer.masksToBounds = YES;
    
    self.xiangqingBut.layer.borderWidth = 1;
    self.xiangqingBut.layer.borderColor =  RGB(248, 118, 6).CGColor;
    
    [self.xiangqingBut mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.mas_equalTo(self.tupianImagevIew).offset(5);
        make.height.mas_equalTo(26);
        make.width.mas_equalTo(44);
        make.right.mas_equalTo(-10);
    }];
    
    
    
    
    
    self.biaoqian1Label.backgroundColor= [UIColor whiteColor];
    self.biaoqian1Label.textColor = RGB(253, 148, 80);
    self.biaoqian1Label.layer.borderWidth = 1;
    self.biaoqian1Label.layer.borderColor = RGB(254, 106, 76).CGColor;
    
    
    self.biaoqian2Label.backgroundColor= [UIColor whiteColor];
    self.biaoqian2Label.textColor = RGB(55, 11, 250);
    self.biaoqian2Label.layer.borderWidth = 1;
    self.biaoqian2Label.layer.borderColor = RGB(43, 102, 251).CGColor;
    
//    self.biaoqian.backgroundColor= RGB(255, 236, 236);
//    self.biaoqian.textColor = RGB(255, 93, 93);
    
    self.biaoqian.backgroundColor= [UIColor whiteColor];
    self.biaoqian.textColor = RGB(125, 59, 252);
    self.biaoqian.layer.borderWidth = 1;
    self.biaoqian.layer.borderColor = RGB(121, 54, 251).CGColor;
    
    
    
    CGFloat  jianju = (kScreenW-3*106-20-20)/2;
    
    
    
    self.xiangxiico1imageView  = [[UIImageView alloc]initWithFrame:CGRectMake(10, 88, 106, 154)];
    self.xiangxiico1imageView.layer.cornerRadius = 10;
    self.xiangxiico1imageView.layer.masksToBounds = NO;
    self.xiangxiico1imageView.backgroundColor = [UIColor clearColor];
    [self.beijingshituView  addSubview:self.xiangxiico1imageView];
    
    self.xiangxiico2imageView  = [[UIImageView alloc]initWithFrame:CGRectMake(10+jianju+106, 88, 106, 154)];
    self.xiangxiico2imageView.layer.cornerRadius = 10;
    self.xiangxiico2imageView.layer.masksToBounds = NO;
    self.xiangxiico2imageView.backgroundColor = [UIColor clearColor];
    [self.beijingshituView addSubview:self.xiangxiico2imageView];
    
    
    self.xiangxiico3imageView  = [[UIImageView alloc]initWithFrame:CGRectMake(10+jianju*2+106*2, 88, 106, 154)];
    self.xiangxiico3imageView.layer.cornerRadius = 10;
    self.xiangxiico3imageView.layer.masksToBounds = NO;
    self.xiangxiico3imageView.backgroundColor = [UIColor clearColor];
    [self.beijingshituView addSubview:self.xiangxiico3imageView];
    
    
    //    kiafumingchengLabel
    
    
    
    self.kiafumingchengLabel = [[UILabel alloc]initWithFrame:CGRectMake(kScreenW-20-10-300, 16,300, 14)];
    self.kiafumingchengLabel .text = @"19888年";
    self.kiafumingchengLabel .textColor = RGB(248, 119 , 6);
    self.kiafumingchengLabel .font = [UIFont systemFontOfSize:10];
    //  self.shijianLabel.font = [UIFont systemFontOfSize:<#(CGFloat)#>]
    //  self.downloadNumberLabel.backgroundColor = [UIColor redColor];
    self.kiafumingchengLabel .textAlignment  = NSTextAlignmentRight;
    self.kiafumingchengLabel .hidden = YES;
    
    [self.beijingshituView addSubview:self.kiafumingchengLabel];
    
    [self.kiafumingchengLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.nameLabel.mas_right).offset(10);
        make.centerY.mas_equalTo(self.nameLabel);
        make.right.mas_lessThanOrEqualTo(-10);
    }];
    
    [self.kiafumingchengLabel setContentCompressionResistancePriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
    [self.kiafumingchengLabel setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
    
    self.nameBgView = [[UIView alloc] init];
    [self.beijingtupianIangeview addSubview:self.nameBgView];
    
    [self.nameBgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.mas_equalTo(0);
        make.top.mas_equalTo(self.nameLabel);
        
    }];
    
//    [self.nameLabel mas_remakeConstraints:^(MASConstraintMaker *make) {
//        make.left.mas_equalTo(self.tupianImagevIew.mas_right).offset(5);
//        make.top.mas_equalTo(self.tupianImagevIew);
//        make.height.mas_equalTo(20);
//    }];
    
    
    
    self.onSaleLabel = [[UILabel alloc] init];
    self.onSaleLabel.font = [UIFont systemFontOfSize:10];
    self.onSaleLabel.textColor = UIColor.whiteColor;
    self.onSaleLabel.backgroundColor = UIColor.redColor;
    self.onSaleLabel.layer.cornerRadius = 3;
    self.onSaleLabel.layer.masksToBounds = YES;
    [self.beijingshituView addSubview:self.onSaleLabel];
    
    self.onSaleLabel.hidden = YES;
    [self.onSaleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.nameLabel.mas_right).offset(10);
        make.height.mas_equalTo(13);
        make.centerY.mas_equalTo(self.nameLabel);
//        make.centerX.mas_equalTo(self.xiangqingBut);
        make.right.mas_lessThanOrEqualTo(-10);
    }];
    
    [self.xiangqingBut mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(-10);
        make.width.mas_equalTo(44);
        make.height.mas_equalTo(30);
        make.centerY.mas_equalTo(self.tupianImagevIew.mas_centerY).offset(10);
    }];
    
    [self.onSaleLabel setContentCompressionResistancePriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
    [self.onSaleLabel setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}


-(void)setTuijianModel:(HWmouxingModel *)tuijianModel {
    
    
    _tuijianModel = tuijianModel;
    
    [self.tupianImagevIew sd_setImageWithURL:[NSURL URLWithString:tuijianModel.icon] placeholderImage:nil];
    
    self.nameLabel.text = tuijianModel.name;
    self.pingfenLabel.text = tuijianModel.point;
    self.typelabel.text  = tuijianModel.type;
    
    if (tuijianModel.zhekou.length > 0) {
        self.onSaleLabel.hidden = NO;
        if ([tuijianModel.zhekou containsString:@"折"]) {
            self.onSaleLabel.text = [NSString stringWithFormat:@" %@ ",tuijianModel.zhekou];
        } else {
            self.onSaleLabel.text = [NSString stringWithFormat:@" %@折 ",tuijianModel.zhekou];
        }
        
        if ([self.onSaleLabel.text isEqualToString:@" 10折 "]) {
            self.onSaleLabel.hidden = YES;
        }
    } else {
        self.onSaleLabel.hidden = YES;
    }
    
    self.biaoqian1Label.hidden = YES;
    self.biaoqian.hidden = YES;
    self.biaoqian2Label.hidden = YES;
    for (int i = 0; i < tuijianModel.biaoqian.count; i++) {
        if (i == 0 ) {
            
            NSString *str1 =  tuijianModel.biaoqian[i];
            
            CGSize size =   [WMUtil strName:str1 fontSize:[UIFont systemFontOfSize:9] boundingRectWithSize:CGSizeMake(1000, 20)];
            
            self.diyigewidth.constant = size.width+10;
            
            self.biaoqian1Label.hidden = NO;
            self.biaoqian1Label.text =  tuijianModel.biaoqian[i];
            
            
        } else if (i == 1) {
            
            
            NSString *str1 =  tuijianModel.biaoqian[i];
            
            CGSize size =   [WMUtil strName:str1 fontSize:[UIFont systemFontOfSize:9] boundingRectWithSize:CGSizeMake(1000, 20)];
            
            self.twowidth.constant = size.width+10;
            
            
            self.biaoqian2Label.hidden = NO;
            self.biaoqian2Label.text =  tuijianModel.biaoqian[i];
            
            
        }else {
            
            NSString *str1 =  tuijianModel.biaoqian[i];
            
            CGSize size =   [WMUtil strName:str1 fontSize:[UIFont systemFontOfSize:9] boundingRectWithSize:CGSizeMake(1000, 20)];
            
            self.threadWidth.constant = size.width+10;
            
            
            self.biaoqian.hidden = NO;
            self.biaoqian.text =  tuijianModel.biaoqian[i];
            
            
        }
        
        
        
        
    }
    
    
    
}

-(void)setYouxiModel:(HWGameListModel *)youxiModel {
    
    
    _youxiModel = youxiModel;
    
    [self.tupianImagevIew sd_setImageWithURL:[NSURL URLWithString:youxiModel.icon] placeholderImage:nil];
    
    self.nameLabel.text = youxiModel.name;
    self.pingfenLabel.text = youxiModel.point;
    self.typelabel.text  = youxiModel.type;
    
    self.biaoqian1Label.hidden = YES;
    self.biaoqian.hidden = YES;
    self.biaoqian2Label.hidden = YES;
    for (int i = 0; i < youxiModel.biaoqian.count; i++) {
        if (i == 0 ) {
            
            
            NSString *str1 =  youxiModel.biaoqian[i];
            
            CGSize size =   [WMUtil strName:str1 fontSize:[UIFont systemFontOfSize:9] boundingRectWithSize:CGSizeMake(1000, 20)];
            
            self.diyigewidth.constant = size.width+10;
            
            
            
            self.biaoqian1Label.hidden = NO;
            
            self.biaoqian1Label.text =  youxiModel.biaoqian[i];
            
            
        } else if (i == 1) {
            
            
            NSString *str1 =  youxiModel.biaoqian[i];
            
            CGSize size =   [WMUtil strName:str1 fontSize:[UIFont systemFontOfSize:9] boundingRectWithSize:CGSizeMake(1000, 20)];
            
            self.twowidth.constant = size.width+10;
            
            
            self.biaoqian2Label.hidden = NO;
            self.biaoqian2Label.text =  youxiModel.biaoqian[i];
            
            
        }else {
            
            
            NSString *str1 =  youxiModel.biaoqian[i];
            
            CGSize size =   [WMUtil strName:str1 fontSize:[UIFont systemFontOfSize:9] boundingRectWithSize:CGSizeMake(1000, 20)];
            
            self.threadWidth.constant = size.width+10;
            
            
            
            self.biaoqian.hidden = NO;
            self.biaoqian.text = youxiModel.biaoqian[i];
            
            
        }
        
        
        
        
    }
    
    
    
    
}



- (void)setReYouModel:(HWGameListModel *)reYouModel {
    
    
    _reYouModel = reYouModel;
    
    
    
    [self.tupianImagevIew sd_setImageWithURL:[NSURL URLWithString:reYouModel.icon] placeholderImage:nil];
    
    self.nameLabel.text = reYouModel.name;
    self.pingfenLabel.text = reYouModel.point;
    self.typelabel.text  = reYouModel.type;
    
    self.biaoqian1Label.hidden = YES;
    self.biaoqian.hidden = YES;
    self.biaoqian2Label.hidden = YES;
    for (int i = 0; i < reYouModel.biaoqian.count; i++) {
        if (i == 0 ) {
            
            
            NSString *str1 =  reYouModel.biaoqian[i];
            
            CGSize size =   [WMUtil strName:str1 fontSize:[UIFont systemFontOfSize:9] boundingRectWithSize:CGSizeMake(1000, 20)];
            
            self.diyigewidth.constant = size.width+10;
            
            
            
            self.biaoqian1Label.hidden = NO;
            
            self.biaoqian1Label.text =  reYouModel.biaoqian[i];
            
            
        } else if (i == 1) {
            
            
            NSString *str1 =  reYouModel.biaoqian[i];
            
            CGSize size =   [WMUtil strName:str1 fontSize:[UIFont systemFontOfSize:9] boundingRectWithSize:CGSizeMake(1000, 20)];
            
            self.twowidth.constant = size.width+10;
            
            
            self.biaoqian2Label.hidden = NO;
            self.biaoqian2Label.text =  reYouModel.biaoqian[i];
            
            
        }else {
            
            
            NSString *str1 =  reYouModel.biaoqian[i];
            
            CGSize size =   [WMUtil strName:str1 fontSize:[UIFont systemFontOfSize:9] boundingRectWithSize:CGSizeMake(1000, 20)];
            
            self.threadWidth.constant = size.width+10;
            self.biaoqian.hidden = NO;
            self.biaoqian.text = reYouModel.biaoqian[i];
            
            
        }
        
        
        
        
    }
    
    
    
}



-(void)setYuyueModel:(HWGameListModel *)yuyueModel {
    
    _yuyueModel = yuyueModel;
    
    self.xiangqingBut.userInteractionEnabled = YES;
    
    
    
    [self.tupianImagevIew sd_setImageWithURL:[NSURL URLWithString:yuyueModel.icon] placeholderImage:nil];
    
    self.nameLabel.text = yuyueModel.name;
    self.pingfenLabel.text = yuyueModel.point;
    self.typelabel.text  = yuyueModel.type;
    
    self.biaoqian1Label.hidden = YES;
    self.biaoqian.hidden = YES;
    self.biaoqian2Label.hidden = YES;
    for (int i = 0; i < yuyueModel.biaoqian.count; i++) {
        if (i == 0 ) {
            
            
            NSString *str1 =  yuyueModel.biaoqian[i];
            
            CGSize size =   [WMUtil strName:str1 fontSize:[UIFont systemFontOfSize:9] boundingRectWithSize:CGSizeMake(1000, 20)];
            
            self.diyigewidth.constant = size.width+10;
            
            
            
            self.biaoqian1Label.hidden = NO;
            
            self.biaoqian1Label.text =  yuyueModel.biaoqian[i];
            
            
        } else if (i == 1) {
            
            
            NSString *str1 =  yuyueModel.biaoqian[i];
            
            CGSize size =   [WMUtil strName:str1 fontSize:[UIFont systemFontOfSize:9] boundingRectWithSize:CGSizeMake(1000, 20)];
            
            self.twowidth.constant = size.width+10;
            
            
            self.biaoqian2Label.hidden = NO;
            self.biaoqian2Label.text =  yuyueModel.biaoqian[i];
            
            
        }else {
            
            
            NSString *str1 =  yuyueModel.biaoqian[i];
            
            CGSize size =   [WMUtil strName:str1 fontSize:[UIFont systemFontOfSize:9] boundingRectWithSize:CGSizeMake(1000, 20)];
            
            self.threadWidth.constant = size.width+10;
            self.biaoqian.hidden = NO;
            self.biaoqian.text = yuyueModel.biaoqian[i];
            
            
        }
        
        
        
        
    }
    
    self.shijianLabel.hidden = NO;
    self.shijianLabel.text = yuyueModel.shangjia;
    
    if ([yuyueModel.is_yuyue isEqualToString:@"1"]) {
        
        
        [self.xiangqingBut setTitle:@"已预约" forState:UIControlStateNormal];
        
        [self.xiangqingBut  setTitleColor:RGB(170, 170, 170) forState:UIControlStateNormal];
        
        self.xiangqingBut.layer.borderColor  = RGB(170, 170, 170).CGColor;
        
        
    } else {
        
        [self.xiangqingBut setTitle:@"预约" forState:UIControlStateNormal];
        
        [self.xiangqingBut  setTitleColor:RGB(27, 193, 156) forState:UIControlStateNormal];
        
        self.xiangqingBut.layer.borderColor  = RGB(27, 193, 156).CGColor;
        
        
    }
    
    
    
    
    
    
}


- (void)xianqingBut {
    
    
    
    
    if ([self.delegete respondsToSelector:@selector(xuanzhongle:)]) {
        
        [self.delegete xuanzhongle:self.yuyueModel];
        
    }
    
    
    
    
    
    
    
}



- (void)setKaifuModel:(HWkaifushituModel *)kaifuModel {
    
    _kaifuModel = kaifuModel;
    
    [self.tupianImagevIew sd_setImageWithURL:[NSURL URLWithString:kaifuModel.icon] placeholderImage:nil];
    
    self.nameLabel.text = kaifuModel.name;
    self.pingfenLabel.text = kaifuModel.point;
    self.typelabel.text  = kaifuModel.type;
    
    self.biaoqian1Label.hidden = YES;
    self.biaoqian.hidden = YES;
    self.biaoqian2Label.hidden = YES;
    for (int i = 0; i < kaifuModel.biaoqian.count; i++) {
        if (i == 0 ) {
            
            
            NSString *str1 =  kaifuModel.biaoqian[i];
            
            CGSize size =   [WMUtil strName:str1 fontSize:[UIFont systemFontOfSize:9] boundingRectWithSize:CGSizeMake(1000, 20)];
            
            self.diyigewidth.constant = size.width+10;
            
            
            
            self.biaoqian1Label.hidden = NO;
            
            self.biaoqian1Label.text =  kaifuModel.biaoqian[i];
            
            
        } else if (i == 1) {
            
            
            NSString *str1 =  kaifuModel.biaoqian[i];
            
            CGSize size =   [WMUtil strName:str1 fontSize:[UIFont systemFontOfSize:9] boundingRectWithSize:CGSizeMake(1000, 20)];
            
            self.twowidth.constant = size.width+10;
            
            
            self.biaoqian2Label.hidden = NO;
            self.biaoqian2Label.text =  kaifuModel.biaoqian[i];
            
            
        }else {
            
            
            NSString *str1 =  kaifuModel.biaoqian[i];
            
            CGSize size =   [WMUtil strName:str1 fontSize:[UIFont systemFontOfSize:9] boundingRectWithSize:CGSizeMake(1000, 20)];
            
            self.threadWidth.constant = size.width+10;
            self.biaoqian.hidden = NO;
            self.biaoqian.text = kaifuModel.biaoqian[i];
            
            
        }
        
        
        
        
    }
    
    
    
    NSArray     *arr =  kaifuModel.imgs;
    
    for (int i = 0 ; i < arr.count; i++) {
        
        if (i == 0) {
            
            [self.xiangxiico1imageView sd_setImageWithURL:[NSURL URLWithString:arr[i]] placeholderImage:nil];
            self.xiangxiico1imageView.hidden = NO;
            
        } else if (i == 1) {
            [self.xiangxiico2imageView sd_setImageWithURL:[NSURL URLWithString:arr[i]] placeholderImage:nil];
            self.xiangxiico2imageView.hidden = NO;
            
        } else {
            
            [self.xiangxiico3imageView sd_setImageWithURL:[NSURL URLWithString:arr[i]] placeholderImage:nil];
            
            self.xiangxiico2imageView.hidden = NO;
            
        }
        
        
    }
    
    
    self.kiafumingchengLabel.hidden = NO;
    
    self.kiafumingchengLabel.text = [NSString stringWithFormat:@"%@ %@",kaifuModel.time,kaifuModel.server_name];
    
    
}


@end
